package com.foundation.java;

import java.io.File;
import java.util.HashMap;
import java.util.Map;

public class TestMapToString {
	public static void main (String[] args) {
		Map map = new HashMap();
		map.put(1, "parameter1");
		map.put(2, "parameter2");
		
		System.out.println(map.toString());
		
		System.out.println(File.separator);
		
		String s = "java/com/sfa/app/";
		s = s.replace('/', File.separator.charAt(0));
		
		System.out.println("s="+s);
		
		String dirPath = "D:/iteam/SFA_APP/";
		String modulePath ="java/com/sfa/app/";
		
		System.out.println(dirPath+modulePath);
		
		File path = new File("E:/work_program/SFA_APP/");
		File[] files = path.listFiles();
		
		for (int i = 0; i < files.length; i++) {
			if (files[i].isDirectory()) {
				System.out.println(files[i].getName());
			}
		}
	}
}
